<?php get_header('page');?>
<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/myvisaApplication.js"></script>
<style>
	.contact_error
	{
		display:none;
	}
	.contact_error_show
	{
		display:block;
		color:red;
		font-weight:bold;
		float:left;
		margin-left:5px;
	}
 .content-box-1
{
			margin-top:15px;	
}
</style>
<body>
<div id="topbg"></div>
<div id="container">
	<div id="header">
    	<?php include TEMPLATEPATH.'/controllers/banner/controller-banner.php';?>
        <?php require_once TEMPLATEPATH.'/views/menu/view-menu.php';?>
    </div>
    
    <div id="mid">
    	<div id="box-content">
            <!-- begin breadcrumb -->
            <?php require_once TEMPLATEPATH.'/views/breadcrumb/view-breadcrumb.php';?>
            <!-- end #breadcrumb -->
            <!-- Page contetn -->
               <?php 
               if(wp_verify_nonce($_POST['act_visa_application_send'],'act_visa_application_send'))
               {
               		if($_POST['captcha']==$_SESSION['ma_xac_nhan'])
               		{
               			$_SESSION['booking_hote_data'] = null;
               			include TEMPLATEPATH.'/views/book/process-visa.php';
               			if($visasID)
               				include TEMPLATEPATH.'/views/book/view-hotel-tour-thanks.php';
               		}
               		else 
               		{
               			$_SESSION['booking_hote_data'] = $_POST;
               			$resultCaptcha = "Sorry. The security code invalid.";
               			include TEMPLATEPATH.'/views/book/view-visaapplications.php';
               		}
               }
               else 
               {
               		$_SESSION['booking_hote_data']= null;
	                include TEMPLATEPATH.'/views/book/view-visaapplications.php';
               } 
               ?>
               
            <!-- End Page contetn -->
        </div>
        
        <?php get_sidebar();?>
    </div>
    
    <?php //include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
    <?php get_footer('page');?>
